import Service from '@/util/request.js'

//根据商品的id查找对应的sku列表
export function getSkuListByPid(pid,keyword){
	return Service({
		method:"GET",
		url:`/sku/${pid}`,
		params:{keyword:keyword}
	})
}


//根据商品的id更新sku列表
export function updateSkuList(pid,skuStockList){
	return Service({
		method:"POST",
		url:`/sku/update/${pid}`,
		data:skuStockList 
	})
}